package com.itheima.Test;

import java.util.concurrent.CopyOnWriteArraySet;

public class AAATest006 implements Runnable{
    //定义数组;
   static CopyOnWriteArraySet<Integer> set = new CopyOnWriteArraySet<>();
    @Override
    public void run() {
        for (int i = 1; i < 10001; i++) {
            set.add(i);
        }

    }
}
